package com.example.pojo.entitly;

import java.io.Serializable;

/**
 * 
 * @TableName refund
 */
public class Refund implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private Integer drugadminId;

    /**
     * 
     */
    private Integer supplierId;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public Integer getDrugadminId() {
        return drugadminId;
    }

    /**
     * 
     */
    public void setDrugadminId(Integer drugadminId) {
        this.drugadminId = drugadminId;
    }

    /**
     * 
     */
    public Integer getSupplierId() {
        return supplierId;
    }

    /**
     * 
     */
    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Refund other = (Refund) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDrugadminId() == null ? other.getDrugadminId() == null : this.getDrugadminId().equals(other.getDrugadminId()))
            && (this.getSupplierId() == null ? other.getSupplierId() == null : this.getSupplierId().equals(other.getSupplierId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDrugadminId() == null) ? 0 : getDrugadminId().hashCode());
        result = prime * result + ((getSupplierId() == null) ? 0 : getSupplierId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", drugadminId=").append(drugadminId);
        sb.append(", supplierId=").append(supplierId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}